from fastapi import FastAPI
from fastapi.responses import ORJSONResponse as JSONResponse

from config.config import DOCS

from . import api

if DOCS:
    admin = FastAPI(default_response_class=JSONResponse)
else:
    admin = FastAPI(openapi_url=None, default_response_class=JSONResponse)


admin.include_router(api.app, prefix="/api")
